package com.ruoyi.quartz.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.ruoyi.common.utils.StringUtils;

/**
 * 定时任务调度测试
 * 
 * @author ruoyi
 */
@Component("ryTask")
public class RyTask
{

    private final Logger log = LoggerFactory.getLogger(this.getClass());

    public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i)
    {
        log.info(StringUtils.format("执行多参方法, 字符串类型:[{}], 布尔类型:[{}], 长整型:[{}], 浮点型:[{}], 整形:[{}]", s, b, l, d, i));
    }

    public void ryParams(String params)
    {
        log.info("执行有参方法:[{}]", params);
    }

    public void ryNoParams()
    {
        log.info("执行无参方法");
    }

}
